<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
   <title>院级管理员</title>
		<link rel="shortcut icon" href="img/head.png" type="image/x-icon">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		
				<link rel="shortcut icon" href="img/head.png" type="image/x-icon">
    	<link rel="stylesheet" href="volunteer/super/bootstrap-3.4.1-dist/css/bootstrap.min.css">
   		<link rel="stylesheet" href="volunteer/super/layui/css/layui.css" media="all">
		
		<link rel="stylesheet" href="volunteer/admin/css/layui/css/layui.css" media="all">
        <link rel="stylesheet" href="volunteer/admin/css/biaoge.css">
        <link rel="stylesheet" href="volunteer/admin/css/quyu.css">
        <script type="text/javascript" src="js/xadmin.js"></script>
        <script src="volunteer/admin/css/layui/layui.js" charset="utf-8"></script>
    <style>
        .box1 {
            text-align: center;
            width: 100%;
            margin-top: 10px;
        }
    </style>
</head>

<body>
<c:set var="List" value="${requestScope.List.subList(beginIndex,endIndex)}"/>

    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo" style="width: 300px;">
                <h3 style="margin-top:20px">“抗疫”志愿者管理系统</h3>
            </div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
            <div class="left_open">
                <a><i class="layui-icon">&#xe668;</i></a>
            </div>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img src="volunteer/super/img/TBW.jpg" class="layui-nav-img">
                        院级管理员
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="">切换账号</a></dd>
                        <dd><a href="volunteer/Login&Register.jsp">退出</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="">前台首页</a></li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <div class="box1">
                    <img src="volunteer/super/img/TBW.jpg" alt="">
                </div>
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">

                    <li class="layui-nav-item"><a href="volunteer/admin/home.jsp"><i
                                class="layui-icon">&#xe68e;</i>&nbsp;&nbsp;主页</a></li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;"><i class="layui-icon">&#xe66f;</i>&nbsp;&nbsp;院级管理员管理</a>
                        <dl class="layui-nav-child">
                            <dd class="layui-this"><a href="SelectCollageAdmin">院级管理员列表</a></dd>
                            <dd><a href="SelectExamine">院级管理员审批</a></dd>
                             <dd><a href="SelectComment">用户评价</a></dd>
                              <dd><a href="SelectBlackList">院级管理员黑名单</a></dd>
                <dd><a href="SelectHiddenComment">评论隐藏列表</a></dd>       
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><i class="layui-icon">&#xe653;</i>&nbsp;&nbsp;活动管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="SelectNotice">前台活动列表</a></dd>
                            <dd><a href="volunteer/super/AddNotice.jsp">志愿活动发布</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:;"><i class="layui-icon">&#xe67a;</i>&nbsp;&nbsp;物资管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="3-1.html">物资管理</a></dd>
                            <dd><a href="3-2.html">物资管理</a></dd>
                            <dd><a href="3-3.html">物资管理</a></dd>
                            <dd><a href="3-4.html">物资管理</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item"><a href="7-1.html"><i class="layui-icon">&#xe60b;</i>&nbsp;&nbsp;个人中心</a>
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-body" style="bottom: 0px;">
                   <ol class="breadcrumb">
                <li><a href="#">用户管理  / 校级管理员管理</a></li>

            </ol>

            <!-- 内容主体区域 -->
            <div style=" margin-top:-30px; background-color: #F6F6F6;">
                <div style="padding: 10px;padding-top: 10px; padding-bottom: 5px;">

                    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief" style="margin-top: 0px;">
                        <!-- <ul class="layui-tab-title">
                                <li class="layui-this">新增用户</li>
                                <li>删除用户</li>
                                <li>修改用户信息</li>
                            </ul> -->
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">



                            </div>

                        </div>

                    </div>

                </div>
   <table align="center" style="margin-top: -30px;margin-left:20px" class="table table-striped  table-hover table-condensed table-responsive"><br>

            <caption>
  				<button class="btn btn-default btn-lg active"><a href="/Volunteer/volunteer/super/AddNotice.jsp">发布</a></button></a>
  				

           <!--   <button style="color:#FFFFFF" class="btn btn-success"><a href="/Volunteer/volunteer/super/AddNotice.jsp"> 发布新公告</a></button>
           -->
            </caption>
             			<tr style="background-color: #003D79; color: #fff; ">
                        <td style="width:70px;">公告序号</td>
                        <td style="width:160px;">公告标题</td>
                        <td style="width:220px;">活动内容</td>
                        <td style="width:100px;">目标人数</td>
                        <td style="width:100px;">活动地点</td>
                        <td style="width:170px;">活动开始时间</td>
                        <td style="width:170px;">活动结束时间</td>
                        <td>操作</td>
                    </tr>
                    <c:forEach items="${Notice}" var="a" varStatus="st">
                        <tr>
                            <td>${st.index+1+beginIndex}</td>
                            <td>${a.title}</td>
                            <td>${a.content}</td>
                            <td>${a.target}</td>
                            <td>${a.place}</td>
                            <td>${a.Stime}</td>
                            <td>${a.Etime}</td>
                            <td>
                                <a href="/Volunteer/DeleteNotice?id=${a.id}">
                                <button type="button" class="btn btn-danger" onclick="alert('确定撤销该公告？')">撤销</button></a>
                   
                                        
      
                                        
                                <a
                                    href="/Volunteer/UpdateNotice02?id=${a.id}&title=${a.title}&type=${a.type}&content=${a.content}&link=${a.link}&target=${a.target}&place=${a.place}&Stime=${a.Stime}&Etime=${a.Etime}"><button
                                        class="btn btn-primary">编辑</button></a>
                            </td>

                        </tr>
                    </c:forEach>

 
        </table>
            <div class="footer">
			                             <ul class="pagination">
							                <li><a href="<c:url value="?page=1"/>">首页</a></li>
							                <li><a href="<c:url value="?page=${page-1>1?page-1:1}"/>">&laquo;</a></li>
							 
							                <c:forEach begin="1" end="${toall}" varStatus="loop">
							                    <c:set var="active" value="${loop.index==page?'active':''}"/>
							                    <li class="${active}"><a
							                            href="<c:url value="?page=${loop.index}"/>">${loop.index}</a>
							                    </li>
							                </c:forEach>
							                <li>
							                    <a href="<c:url value="?page=${page+1<toall?page+1:toall}"/>">&raquo;</a>
							                </li>
							                <li><a href="<c:url value="?page=${toall}"/>">尾页</a></li>
							            </ul>
                                    </div>

                
            </div>

        </div>
       

    </div>
    <script>
        //JavaScript 代码区域
        layui.use('element', function () {
            var element = layui.element;

        });

        function check(st) {
            var a = document.getElementById("username" + st).value;
            var z = confirm("确定要禁封'" + a + "'吗?")
            if (z) {
                alert("禁封成功！");
                return true;
            } else {
                return false;
            }
        }
    </script>
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?d214947968792b839fd669a4decaaffc";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();

        layui.use(['laydate', 'form'], function () {
        });
    </script>

</body>

</html>